package chuishop.yiqimaicai.service;

import chuishop.yiqimaicai.pojo.BusinessDetails;
import chuishop.yiqimaicai.pojo.Typegoods;

import java.util.List;

public interface BusinessDetailsService {
    //查询所有业务明细
    List<BusinessDetails> findAllBusinessDetails();

    //分情况查询
    List<BusinessDetails> findDetailsById(Integer gid,Integer sid,Integer gsid);
    List<BusinessDetails> findDetailsByGid(Integer gid);
    List<BusinessDetails> findDetailsBySid(Integer sid);
    List<BusinessDetails> findDetailsByGsid(Integer gsid);
    List<BusinessDetails> findDetailsByGidAndSid(Integer gid,Integer sid);
    List<BusinessDetails> findDetailsByGidAndGsid(Integer gid,Integer gsid);
    List<BusinessDetails> findDetailsBySidAndGsid(Integer sid,Integer gsid);

    //删除功能
    boolean delBusinessDetails(String[] ids);

    //添加功能
    boolean addBusinessDetails(BusinessDetails businessDetails);
    //修改更新功能
    boolean updateBusinessDetails(BusinessDetails businessDetails);
}
